package ru.reaperoq.routing

object URLS {
    const val API = "/api"

    object Users {
        const val USERS = "$API/users"
        const val ME = "$USERS/me"
        const val USER = "$USERS/{id}"
    }

    object Auth {
        const val AUTH = "$API/auth"
        const val LOGIN = "$AUTH/login"
        const val REGISTER = "$AUTH/register"
    }

    object Locations {
        const val LOCATIONS = "$API/locations"
        const val LOCATION = "$LOCATIONS/{id}"
    }

    object Components {
        const val COMPONENTS = "$API/components"
        const val MY = "$COMPONENTS/my"
        const val COMPONENT = "$COMPONENTS/{id}"
        const val COMPONENT_BY_SERIAL = "$COMPONENTS/serial/{serial}"
        const val VERIFY = "$COMPONENTS/{id}/verify"
        const val COMPONENTS_BY_COMPUTER = "$API/computers/{id}/components"
        const val COMPONENTS_BY_LOCATION = "${Locations.LOCATIONS}/{id}/components"
        const val TYPES = "$COMPONENTS/types"
    }

    object Computers {
        const val COMPUTERS = "$API/computers"
        const val MY = "$COMPUTERS/my"
        const val COMPUTER = "$COMPUTERS/{id}"
        const val COMPUTER_BY_SERIAL = "$COMPUTERS/serial/{serial}"
        const val VERIFY = "$COMPUTERS/{id}/verify"
        const val COMPUTERS_BY_LOCATION = "$${Locations.LOCATIONS}/{id}/computers"
    }
}